home *** CD-ROM | disk | FTP | other *** search
/ Atari Forever 3 / Atari Forever 3 / Atari Forever 3.iso / TOOLS / MGIF / EXAMPLES / LOGO / LOGO.POV < prev    next >
Encoding:
Text File  |  1996-01-23  |  1.1 KB  |  41 lines

  1. // Testing heightfields...
  2. //
  3. // Logo.gif is the mgif.img inverted and blurred several times to
  4. // get rounder shape.
  5. //
  6. // Run first with:
  7. //   pov -ilogo.pov -w160 -h100 -q4  (input, width, height, quality)
  8. //
  9. // If you'll like it, make a bigger logo.gif and render a full picture:
  10. //   pov -ilogo.pov -w640 -h400 +a  (full quality, antialiased)
  11. //
  12. // 2.11.1995, Eero Tamminen
  13.  
  14. height_field {            // inside 1x1x1 cube at <0,0,0>
  15.   gif "logo.gif"        // grayscale height field gif
  16.   smooth
  17.   pigment {            // coloring
  18.     gradient y            // from black at bottom-0 to white at top-1
  19.     color_map {            // specify a color range for the object
  20.       [ 0, 1 color rgb <0.3, 0.3, 0.2>
  21.              color rgb <0.8, 1.0, 0.9> ]
  22.     }
  23.   }
  24.   finish {            // surface properties
  25.     ambient 0.2            // overall (minimum) color intensity
  26.     phong 1            // highlight(s)
  27.   }
  28.   translate <-0.5, -0.5, -0.5>    // move to the origo
  29.   scale <8, 0.5, 4>        // resize into 8x0.5x4
  30. }
  31.  
  32. light_source {            // a spotlight
  33.   <3, 3.5, 4>            // reflects near the letter i
  34.   color rgb <1, 1, 0>        // yellow
  35. }
  36.  
  37. camera {            // pinhole camera (everything in-focus)
  38.   location  <0, 5, -4>
  39.   look_at   <0, 0, 0>
  40. }
  41.